package br.com.ordersys.web.client.modules.events;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;

public class BroadcastDispatcher {
	private static EventBus EVENT_BUS = GWT.create(SimpleEventBus.class);
	
	public static void send(BroadcastEvent e){
		EVENT_BUS.fireEvent(e);
	}
	
	public static void addHandler(BroadcastEventHandler h){
		EVENT_BUS.addHandler(BroadcastEvent.TYPE, h);
	}
}
